package com.betty.cscams.dao;

import java.util.List;
import java.util.Map;

import com.betty.cscams.entity.BusSubject;
import com.betty.cscams.entity.SysDept;
import org.apache.ibatis.annotations.Param;

/**
 * ---------------------------
 *  (BusSubjectMapper)         
 * ---------------------------
 * 时间：  2022-04-03 12:19:27
 * ---------------------------
 */
public interface BusSubjectMapper {

	/**
	 * 添加
	 * @param record
	 * @return
	 */
    int add(BusSubject record);

    /**
     * 删除
     * @param id
     * @return
     */
    int delete(Long id);
    
    /**
     * 修改
     * @param record
     * @return
     */
    int update(BusSubject record);
    
    /**
     * 根据主键查询
     * @param id
     * @return
     */    
    BusSubject findById(Long id);

    /**
     * 基础分页查询
     * @return
     */    
    List<BusSubject> findPage(@Param("termId") String termId,@Param("subjectName") String subjectName,@Param("subjectType") String subjectType);

    List<SysDept> findUsersBySubject(Long subjectId);

    List<BusSubject> findSubjectOptions(Map<String,Object> params);

    List<BusSubject> findByParams(Map<String,Object> params);

    List<BusSubject> findOptions(Map<String,Object> params);

}